  if (document.getElementsByTagName("body")[0].accessKey == "nologin" && dd.env.platform !== "notInDingTalk") {
    dd.ready(function () {
    dd.runtime.permission.requestAuthCode({
      corpId: "ding069d4eb6a1d2cc11", // 企业id
      onSuccess: function (info) {
        code = info.code // 通过该免登授权码可以获取用户身份
        $.get({
          url: dingTalkAuth.url,
          data: { "code": code },
          dataType: 'text',
          success: function (data,status,headers) {
            console.log(data);
            //alert("数据: \n" + data + "\n状态: " + status);
            if(data.uname){
             document.getElementById('username').innerHTML =data.uname;
             alert("数据: \n" + data + "\n状态: " + status);
            }
          }
        });
      }
    });
  });
  }
